<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<jsp:include page="includes/header.jsp"></jsp:include>

<div id="maincontent">
	<div id="contentleft">
		<div id="formdk">
			<ul class="title">
				<li><a href="#"> ĐĂNG KÝ THÀNH VIÊN</a></li>
			</ul>
			<form action="dangky" method="post">
				<table width="400" border="0" style="margin: auto;">
					<%
						String ten = (String) request.getAttribute("ten");
						String ho = (String) request.getAttribute("ho");
						String email = (String) request.getAttribute("email");
						String matkhau = (String) request.getAttribute("matkhau");
						String nhaplaimatkhau = (String) request
								.getAttribute("nhaplaimatkhau");
						String ngaysinh = (String) request.getAttribute("ngaysinh");

						String err_ten = (String) request.getAttribute("err_ten");
						String err_email = (String) request.getAttribute("err_email");
						String err_matkhau = (String) request.getAttribute("err_matkhau");
						String err_nhaplaimatkhau = (String) request
								.getAttribute("err_nhaplaimatkhau");
						String err_ngaysinh = (String) request.getAttribute("err_ngaysinh");
						//ten
						if (ten == null)
							ten = "";
						if (request.getAttribute("ten") != null)
							ten = (String) request.getAttribute("ten");

						//mail
						if (email == null)
							email = "";
						if (request.getAttribute("email") != null)
							email = (String) request.getAttribute("email");

						//matkhau
						if (matkhau == null)
							matkhau = "";
						if (request.getAttribute("matkhau") != null)
							matkhau = (String) request.getAttribute("matkhau");

						//Nhap lai mat khau
						if (nhaplaimatkhau == null)
							nhaplaimatkhau = "";
						if (request.getAttribute("nhaplaimatkhau") != null)
							nhaplaimatkhau = (String) request
									.getAttribute("nhaplaimatkhau");

						//err_ten
						if (err_ten == null)
							err_ten = "";

						//err_email
						if (err_email == null)
							err_email = "";

						//err_matkhau
						if (err_matkhau == null)
							err_matkhau = "";

						//err_nhaplaimatkhau
						if (err_nhaplaimatkhau == null)
							err_nhaplaimatkhau = "";

						//err_ngaysinh
						if (err_ngaysinh == null)
							err_ngaysinh = "";
					%>


					<tr>
						<td width="139" height="30">Tên:</td>
						<td width="224" height="30"><input type="text"
							value="<%=ten%>" name="ten" class="ipdkdn" /></td>
						<td width="15" height="30"><span class="required">*</span></td>
					</tr>
					<tr>
						<td height="30" colspan="3" align="center"><label><font
								size="2" style="color: red;"><%=err_ten%></font></label></td>
					</tr>
					<tr>
						<td width="139" height="30">Họ:</td>
						<td width="224" height="30"><input type="text" name="ho"
							class="ipdkdn" /></td>
						<td width="15" height="30">&nbsp;</td>
					</tr>

					<tr>
						<td width="139" height="30">Email:</td>
						<td width="224" height="30"><input type="text"
							value="<%=email%>" name="email" class="ipdkdn" /></td>
						<td width="15" height="30"><span class="required">*</span></td>
					</tr>
					<tr>
						<td height="30" colspan="3" align="center"><label><font
								size="2" style="color: red;"><%=err_email%></font></label></td>
					</tr>
					<tr>
						<td width="139">Mật khẩu:</td>
						<td width="224" height="30"><input type="password"
							value="<%=matkhau%>" name="matkhau" class="ipdkdn" /></td>
						<td width="15" height="30"><span class="required">*</span></td>
					</tr>
					<tr>
						<td height="30" colspan="3" align="center"><label><font
								size="2" style="color: red;"><%=err_matkhau%></font></label></td>
					</tr>
					<tr>
						<td width="139">Nhập lại mật khẩu:</td>
						<td width="224" height="30"><input type="password"
							value="<%=nhaplaimatkhau%>" name="nhaplaimatkhau" class="ipdkdn" /></td>
						<td width="15" height="30"><span class="required">*</span></td>
					</tr>
					<tr>
						<td height="30" colspan="3" align="center"><label><font
								size="2" style="color: red;"><%=err_nhaplaimatkhau%></font></label></td>
					</tr>
					<tr>
						<td width="139" height="30">Giới tính:</td>
						<td width="224" height="30"><p>
								<label> <input type="radio" name="gioitinh" value="1" />
									Nam
								</label>&nbsp; <label> <input type="radio" name="gioitinh"
									value="2" /> Nữ
								</label>&nbsp; <label> <input type="radio" name="gioitinh"
									value="3" /> Khác
								</label>
							</p></td>
						<td width="15" height="30">&nbsp;</td>
					</tr>
					<tr>
						<td width="139">Sinh nhật:</td>
						<td width="224" height="30"><input type="date"
							min="1970-01-01" min="2014-01-01" name="ngaysinh" class="ipdkdn" /></td>
						<td width="15" height="30">&nbsp;</td>
					</tr>


					<tr>
						<td height="30" colspan="3"><input type="checkbox"
							name="dieukhoan" id="checkbox" /> <label for="checkbox">
								Bằng cách click chọn, bạn chấp nhận <a href="#">điều khoản</a>
								của trang thông tin công nghệ
						</label></td>
					</tr>
					<tr align="center">
						<td height="30" colspan="3"><input type="submit"
							name="dangky" id="dangky" value="Gửi" class="dkdn-bt"
							style="cursor: pointer;" /> &nbsp;&nbsp; <input type="submit"
							name="lamlai" id="lamlai" value="Làm lại" class="dkdn-bt"
							style="cursor: pointer;" /></td>
					</tr>
				</table>

			</form>
		</div>
		<!-- end formdk -->
	</div>
	<!-- end contentleft -->

	<div id="contentright">
		<jsp:include page="includes/content-right.jsp"></jsp:include>
	</div>
	<!-- end content right -->
</div>
<!-- end maincontent -->
<jsp:include page="includes/footer.jsp"></jsp:include>